/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EXAMESMEDICOS")
public class ExamesMedicosProteu implements Serializable{

    @Id
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;
    @Column(name="EXL_ST_CODIGO")
    private String exlStCodigo;
    @Column(name="EXM_ST_ORDEM")
    private String exmStOrdem;


    public String getExlStCodigo() {
        return exlStCodigo;
    }

    public void setExlStCodigo(String exlStCodigo) {
        this.exlStCodigo = exlStCodigo;
    }

    public String getExmStOrdem() {
        return exmStOrdem;
    }

    public void setExmStOrdem(String exmStOrdem) {
        this.exmStOrdem = exmStOrdem;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ExamesMedicosProteu other = (ExamesMedicosProteu) obj;
        if ((this.medStCodigo == null) ? (other.medStCodigo != null) : !this.medStCodigo.equals(other.medStCodigo)) {
            return false;
        }
        if ((this.exlStCodigo == null) ? (other.exlStCodigo != null) : !this.exlStCodigo.equals(other.exlStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.medStCodigo != null ? this.medStCodigo.hashCode() : 0);
        hash = 97 * hash + (this.exlStCodigo != null ? this.exlStCodigo.hashCode() : 0);
        return hash;
    }



}
